package cu.tedu._06interceptor.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "用户模块")
@RestController
@RequestMapping("/v1/users/")
public class UserController {

    @ApiOperation(value = "注册功能")
    @GetMapping("reg")
    public String reg() {
        return "注册";
    }

    @ApiOperation(value = "登录功能")
    @GetMapping("login")
    public String login() {
        return "登录";
    }
}
